import request from '@/utils/request'

// 获取商品详细信息
export function getDetailGoodsInfo(data) {
  return request({
    url: '/goods/getDetailGoodsInfo',
    method: 'post',
    data
  })
}

// 获取商品一级分类信息
export function getCategoryList() {
  return request({
    url: '/goods/getCategoryList',
    method: 'get'
  })
}

// 获取商品二级分类信息
export function getCategorySubList(data) {
  return request({
    url: '/goods/getCategorySubList',
    method: 'post',
    data
  })
}

// 根据二级分类获取商品列表
export function getGoodsListByCategorySubID(data) {
  return request({
    url: '/goods/getGoodsListByCategorySubID',
    method: 'post',
    data
  })
}

// 获取推荐商品
export function getRecommendGoodsList() {
  return request({
    url: '/goods/getRecommendGoodsList',
    method: 'get'
  })
}

// 获取热门商品
export function getHotGoodsList() {
  return request({
    url: '/goods/getHotGoodsList',
    method: 'get'
  })
}
